﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Administration;

namespace SPFarmDiscovery.SPObjects
{
	public class WebApplication: SPObjectBase
	{
		public string Url;
		public double SizeInMB;
		public int NumberOfSiteCollections;
		public int NumberOfWebs;
		public int NumberOfLists;
		public List<SiteCollection> SiteCollections;

		public WebApplication() { }

		public WebApplication(
			string url,
			double sizeInMB,
			int numberOfSiteCollections,
			int numberOfWebs,
			int numberOfLists,
			List<SiteCollection> allSites)
		{
			this.Url = url;
			this.SizeInMB = sizeInMB;
			this.NumberOfSiteCollections = numberOfSiteCollections;
			this.NumberOfWebs = numberOfWebs;
			this.NumberOfLists = numberOfLists;
			this.SiteCollections = allSites;
		}

		public override string ToString()
		{
			return this.ToXml();
		}
	}
}
